import java.io.FileNotFoundException;

/**
 * @Author 12629
 * @Description：
 */
class Person implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
public class Test2 {

    public static void main(String[] args) {
        int[] array = null;
        System.out.println(array.length);

        System.out.println("我是其他的代码逻辑！");
    }

    public static void func2(int a)  throws CloneNotSupportedException,
            FileNotFoundException{
        if(a == 0) {
            //抛出的是一个指定的异常，最多的使用方式是 抛出一个自己定义的异常
            throw new CloneNotSupportedException("a==0");
        }
        if(a == 1) {
            throw new FileNotFoundException();
        }
    }


    public static void main4(String[] args) throws CloneNotSupportedException
    ,FileNotFoundException{
        func2(0);
    }



    public static void func() {
        func();
    }

    public static void main3(String[] args) {
        func();
    }

    public static void main2(String[] args) {
        try {
            Person person1 = new Person();
            Person person2 = (Person)person1.clone();
        }catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        System.out.println("qita luoji !");
    }

    public static void main1(String[] args) {
        //System.out.println(10/0);
        int[] array = null;
        System.out.println(array.length);
    }
}
